package
{
	public class QueryController
	{
		
		public var model:QueryModel;
		
		public function QueryController()
		{
		}
		
		public function doQuery():void {
			var latlngRegExp:RegExp = /^(\d+(.\d*)?),(\d+(.\d*)?)$/;
			var matcher:Object = latlngRegExp.exec(model.qString);
			if(matcher) {
				model.latitude = matcher[1];
				model.longitude = matcher[3];
			}else{
				//TODO
			}
		}
	}
}